<!DOCTYPE html>
<html xmlns:th = "http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
   	<style>
   		h3{
   			text-align: center ;
   		}
   		
   		table {
   			width:300px;
   			height:150px;
   			border:1px solid gray ;
   			border-collapse: collapse;
   			
   			margin:0 auto ;
   		}
   		
   		table td{
   			border:1px solid gray ;
   		}
   		label{
   			color:red ;
   			margin-left:45% ;
   		}
		center{

			color: red;
		}
   </style>
</head>
	
<body>
     <h3>用户登录</h3>
   <hr width="400">



	 <center th:text = "${session.msg}"></center>
	 <center th:text = "${session.message}"></center>
	 <form th:action="@{/user/login}" method = "post" >
       		<table>
		   		<tr>
		   			<td align = "right">姓名：</td>
		   			<td align = "left">&nbsp;<input name = "name"></td>
		   		</tr>
		   		<tr>
		   			<td align = "right">密码：</td>
		   			<td align = "left">&nbsp;<input name = "pass"></td>
		   		</tr>
		   		<tr>
		   			<td colspan="2" align = "center"><input type="submit" value = "登录" ></td>
		   		</tr>
		   </table>

       </form>
	<center>
		<a href="/getQQCode">获取qq登录连接</a>

		<a th:href="${url}">开始登录</a>





	</center>
</body>
</html>